package windowUnits;

import sqlServer.BaseDataObject;

public class PrimaryWeb extends BaseDataObject {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -3658180367211222223L;
	public final static int ID = 0;
	public final static int WEB_NAME = 1;
	public final static int OBJECT_TYPE = 2;
	private int id = 0;
	private String webName;
	private String objectType = "index";
	
	public PrimaryWeb(String webName) {
		this.webName = webName;
		this.setObjectType("index");
		this.setObjectId(ID);
	}
	
	public String getValue(int valueId){
		String value = null;
		switch(valueId){
		case ID: value = Integer.toString(id); break;
		case WEB_NAME: value = webName; break;
		case OBJECT_TYPE: value = objectType; break;
		}
		return value;
	}
	
	
	
	public String toString() { 
		return webName;
    }

}
